﻿<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>校园门禁后台管理系统</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="javascript/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
	//setMenuHeight
	$('.menu').height($(window).height()-51-27-26);
	$('.sidebar').height($(window).height()-51-27-26);
	$('.page').height($(window).height()-51-27-26);
	$('.page iframe').width($(window).width()-15-168);
	
	//menu on and off
	$('.btn').click(function(){
		$('.menu').toggle();
		if($(".menu").is(":hidden")){
			$('.page iframe').width($(window).width()-15+5);
			}else{
			$('.page iframe').width($(window).width()-15-168);
			}
		});
		
	//
	$('.subMenu a[href="#"]').click(function(){
		$(this).next('ul').toggle();
		    return false;
		});

    $(".b_title").click(function(){
		if(this.value==1){
            $(".menu").css("display","block");
            $('.page iframe').width($(window).width()-15-168);
			$("#rightMain").attr('src',"mgr_class.html");
		}else if(this.value==2){
            $("#rightMain").attr('src',"setting.html");
            $('.page iframe').width($(window).width()-10);
            $(".menu").css({"display":"none"});
		}
	});
})
	
</script>


</head>
<!--后台管理首页-->
<body>
<div id="wrap">
	<div id="header">
    <div class="logo fleft">校园门禁系统</div>
    <div class="nav fleft">
    	<ul>
        	<div class="nav-left fleft"></div>
                <li class="first b_title" value="1">管理中心</li>
                <li class="b_title" value="2">系统设置</li>
            <div class="nav-right fleft"></div>
        </ul>
    </div>
    <a class="logout fright" href="login.html"></a>
    <div class="clear"></div>
    <div class="subnav">
    	<div class="subnavLeft fleft"></div>
        <div class="fleft"></div>
        <div class="subnavRight fright"></div>
    </div>
    </div><!--#header -->
    <div id="content">
    <div class="space"></div>
    <div class="menu fleft">
    	<ul>
        	<li class="subMenuTitle">管理中心</li>
            <li class="subMenu"><a href="mgr_college.html" target="right">学院管理</a></li>
            <li class="subMenu"><a href="mgr_major.html" target="right">专业管理</a></li>
            <li class="subMenu"><a href="mgr_class.html" target="right">班级管理</a></li>
            <li class="subMenu"><a href="mgr_student.html" target="right">学生管理</a></li>
            <li class="subMenu"><a href="mgr_parent.html" target="right">家长管理</a></li>
            <li class="subMenu"><a href="mgr_teacher.html" target="right">老师管理</a></li>
            <li class="subMenu"><a href="#">记录浏览</a>
                <ul>
                    <li><a href="card_record.html" target="right">刷卡记录</a></li>
                    <li><a href="outer_record.html" target="right">外出记录</a></li>
                </ul>
            </li>
        </ul>
    </div>
    <div class="sidebar fleft"><div class="btn"></div></div>
    <div class="page">
        <iframe width="100%" scrolling="auto" height="100%" frameborder="false" allowtransparency="true" style="border: medium none;" src="mgr_class.html" id="rightMain" name="right"></iframe>
    </div>
    </div><!--#content -->
    <div class="clear"></div>
    <div id="footer"></div><!--#footer -->
</div><!--#wrap -->
</body>
</html>
